package cn.kickegg.concurrent.locks;

public class Sync04 {

  public synchronized void a() {
    b();
  }

  public synchronized void b() {
    c();
  }

  public synchronized void c() {
    System.out.println("悟空是只猴子");
  }

  public static void main(String[] args) {
    new Thread(new Runnable() {
      @Override
      public void run() {
        new Sync04().a();
      }
    }).start();


  }
}
